package com.guigutool.knote;

import java.text.DecimalFormat;
import java.util.Date;

/**
 * @Author: KingWang
 * @Date: 2023/3/9
 * @Desc:
 **/
public class Demo {

    public static void main(String[] args) {
        Date dt = new Date();
        System.out.println(dt.getTime());

        DecimalFormat decimalFormat = new DecimalFormat("#");
        System.out.println(new Double(dt.getTime()));
        System.out.println(decimalFormat.format(new Double(dt.getTime())));
    }

}
